package BasicClass.Four;

import java.util.SortedMap;

public class NodeTest {
    public static void main(String[] args) {
        ListNode node0 = new ListNode(1);
        ListNode node1 = new ListNode(4);
        ListNode node2 = new ListNode(3);

        node0.next = node1;
        node1.next = node2;

        ListNode listNode = Sort(node0);
        while (listNode!=null){
            System.out.print(listNode.val+"-->");
            listNode = listNode.next;
        }
    }

    public static ListNode Sort(ListNode node){
        ListNode pre = node;
        pre.next = pre.next.next;
        return node;
    }

    public static class ListNode {
        int val;
        ListNode next = null;

        ListNode(int val) {
            this.val = val;
        }
    }
}
